#-*-coding:utf-8-*-
import hou

import doptoolutils
import dopsmoketoolutils
import doppyrotoolutils

from HA_Node import hNode
class Pyro(object):
    def __init__(self):
        super(Pyro,self).__init__()
        self.root=hou.node("/obj")

        self.Node=hNode.Node()

    def createFireBall(self):
        sphere= self.Node.aiCreate('sphere',"FireFlame")
        sphere.parent().setSelected(1,1,1)
        kwargs={'inputs': [], 'branch': False, 'cmdclick': False, 'outputs': [], 'outputindex': -1, 'autoplace': False, 'outputnodename': '', 'shiftclick': False, 'panename': '', 'toolname': 'UseForTest', 'pane': None, 'altclick': False, 'ctrlclick': True, 'inputnodename': '', 'inputindex': -1, 'viewport': None, 'requestnew': False}
        doppyrotoolutils.burn(kwargs,True)



    def createFireBallExplosion(self):
        sphere= self.Node.aiCreate('sphere',"FireBall")
        sphere.parent().setSelected(1,1,1)
        kwargs={'inputs': [], 'branch': False, 'cmdclick': False, 'outputs': [], 'outputindex': -1, 'autoplace': False, 'outputnodename': '', 'shiftclick': False, 'panename': '', 'toolname': 'UseForTest', 'pane': None, 'altclick': False, 'ctrlclick': True, 'inputnodename': '', 'inputindex': -1, 'viewport': None, 'requestnew': False}
        doppyrotoolutils.explosion(kwargs,True)


